/**
 * 文本链接 a
 */
//	_EsdDynamicTransformationScript.navBlock = {}; //定义区域跳转类
//	_EsdDynamicTransformationScript.navBlock.debug = true; //是否是调试模式，调试模式有红边线，非调试模式关闭红边框
//	//定义跳转 使用jquery选择器语法
//	_EsdDynamicTransformationScript.navBlock.selector = {};

	
if(location.href=="http://mpa.jl.gov.cn/" || location.href=="http://mpa.jl.gov.cn/index.html"){
//首页
	//主要修改部分把网站对应的选择器赋值给相应的变量。或用jquery把默认的id复制给网站的元素****************************此处重要位置修改
	$(".headerBox").attr("id","header");
	_EsdDynamicTransformationScript.navBlock.selector.top = "#header";
	_EsdDynamicTransformationScript.navBlock.selector.nav = "#nav";
	$(".footer").attr("id","footer");
	_EsdDynamicTransformationScript.navBlock.selector.footer = "#footer";
	$(".content").attr("id","main");
	_EsdDynamicTransformationScript.navBlock.selector.main = "#main";

	_EsdDynamicTransformationScript.navBlock.selector.left = "#left";

	_EsdDynamicTransformationScript.navBlock.selector.right = "#right";

	_EsdDynamicTransformationScript.navBlock.selector.content = "#content";
	//给栏目的class属性添加navBlock值来标识这是需要切的栏目区块。
	$(".content .conFlour1 .page_slide").addClass("navBlock");
	$(".content .conFlour1 .gndt").addClass("navBlock");
	$(".content .conFlour2").addClass("navBlock");
	$(".content .conFlour3 .tzwj").addClass("navBlock");
	$(".content .conFlour3 .zyzcxx").addClass("navBlock");
	$(".content .conFlour4").addClass("navBlock");
	$(".content .conFlour5").addClass("navBlock");
	$(".content .conFlour6 .conFlour6L").addClass("navBlock");
	$(".content .conFlour6 .conFlour6R").addClass("navBlock");

	_EsdDynamicTransformationScript.navBlock.selector.activate = ".navBlock"; //激活的采用class因为会激活多个

}


if(location.href=="http://mpa.jl.gov.cn/zxfw_84842/"){
	//二级页(导航---资讯服务)
	//给栏目的class属性添加navBlock值来标识这是需要切的栏目区块。
	$(".content .serviceLeft>div").addClass("navBlock");
	$(".content .serviceRight>div").addClass("navBlock");
	_EsdDynamicTransformationScript.navBlock.selector.activate = ".navBlock"; //激活的采用class因为会激活多个
}


if(location.href=="http://mpa.jl.gov.cn/xxgk_84894/"){
	//二级页(导航---信息公开)
	_EsdDynamicTransformationScript.navBlock.selector.main = ".gz_page";
	//给栏目的class属性添加navBlock值来标识这是需要切的栏目区块。
	$("body>.gz_page>.gz_page_left>div").addClass("navBlock");
	$("body>.gz_page>.gz_page_right>div").addClass("navBlock");
	_EsdDynamicTransformationScript.navBlock.selector.activate = ".navBlock"; //激活的采用class因为会激活多个
}

if(location.href=="http://mpa.jl.gov.cn/gzfw/"){
	//导航的二级页--公众服务
	_EsdDynamicTransformationScript.navBlock.selector.main = ".gz_page";
	//给栏目的class属性添加navBlock值来标识这是需要切的栏目区块。
	$(".gz_page > div").addClass("navBlock");
	_EsdDynamicTransformationScript.navBlock.selector.activate = ".navBlock"; //激活的采用class因为会激活多个
}

if(location.href=="http://mpa.jl.gov.cn/xzxk_85114/"){
	//二级页(导航---行政许可)
	//给栏目的class属性添加navBlock值来标识这是需要切的栏目区块。
	$("body>.content>.serviceLeft>div").addClass("navBlock");
	$("body>.content>.serviceRight>div").addClass("navBlock");
	_EsdDynamicTransformationScript.navBlock.selector.activate = ".navBlock"; //激活的采用class因为会激活多个
}


if(location.href=="http://mpa.jl.gov.cn/ztzl_85150/"){
	//导航的其它二级页
	//给栏目的class属性添加navBlock值来标识这是需要切的栏目区块。
	$("body>.content>.laderMain>div").addClass("navBlock");
	_EsdDynamicTransformationScript.navBlock.selector.activate = ".navBlock"; //激活的采用class因为会激活多个
}



//面包屑导航（除首页）
if( $(".CurrChnlCls").length > 0 ){
	
	$(".headerBox").attr("id","header");
	_EsdDynamicTransformationScript.navBlock.selector.top = "#header";

	_EsdDynamicTransformationScript.navBlock.selector.nav = "#nav";
	$(".footer").attr("id","footer");
	_EsdDynamicTransformationScript.navBlock.selector.footer = "#footer";
	$("body .content").attr("id","main");
	_EsdDynamicTransformationScript.navBlock.selector.main = "#main";
	
	if( $("body>.content>.laderMain .laderLeft").length > 0 ){
		$("body>.content>.laderMain .laderLeft").attr("id","left");
		$("body>.content>.laderMain .laderRight").attr("id","right");
	}
	if( $("body .content .wyxxBoxL").length > 0 ){
		$("body .content .wyxxBoxL").attr("id","left");
		$("body .content .wyxxBoxR").attr("id","right");
	}
	if( $("body>.content>.serviceLeft").length > 0 ){
		$("body>.content>.serviceLeft").attr("id","left");
		$("body>.content>.serviceRight").attr("id","right");
	}
	if( $("body>.gz_page>.gz_page_left").length > 0 ){
		$("body>.gz_page>.gz_page_left").attr("id","left");
		$("body>.gz_page>.gz_page_right").attr("id","right");
	}
	_EsdDynamicTransformationScript.navBlock.selector.left = "#left";
	_EsdDynamicTransformationScript.navBlock.selector.right = "#right";
	$(".listMain").attr("id","content");
	_EsdDynamicTransformationScript.navBlock.selector.content = "#content";
	
	//给栏目的class属性添加navBlock值来标识这是需要切的栏目区块。
	_EsdDynamicTransformationScript.navBlock.activateArray = [
		"body .content",  "body>.content>.laderMain .laderLeft" ,  "body>.content>.laderMain .laderRight" ,
		"body .content .wyxxBoxL" ,  "body .content .wyxxBoxR" ,  "body>.content>.serviceLeft>div" ,  "body>.content>.serviceRight>div" ,
		".listMain" ,  "body>.content>.laderMain>div" ,".breadDiv"
	]
	
	for(var i=0; i<_EsdDynamicTransformationScript.navBlock.activateArray.length;i++){
		$(_EsdDynamicTransformationScript.navBlock.activateArray[i]).addClass("navBlock");
	}
	
	
	//非首页的导航倒切处理
	$("body .content a:first").focus(function (e) {
		$(this).bind("keydown.keydown_navLastA", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				$("#nav>li:eq(5) .navContent").css({"display":"block"});
				$("#nav>li:eq(5) .navContent ul a:last").focus();
				return false;
			}else if (e.keyCode == 9) {
				
			}
		});
	});
	$("body .content a:first").blur(function () {
		$(this).unbind("keydown.keydown_navLastA");
	});
	
	
	
	
}









